package com.slkj.shilixiaoyuanapp.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * Created  on 2018-08-31
 *
 * @author 唐开阔
 * @describe
 */
public class CaseEntity implements MultiItemEntity {
    /**
     * title : 基础绩效
     * monery : 1835
     */
    public static final int TYPE_TITLE= 1;
    public static final int TYPE_CONTENT = 2;
    private String title;
    private String monery;
    private int type = TYPE_CONTENT;
    public String getTitle() {
        return title;
    }

    public CaseEntity(String title,  int type) {
        this.title = title;
        this.type = type;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMonery() {
        return monery;
    }

    public void setMonery(String monery) {
        this.monery = monery;
    }

    @Override
    public int getItemType() {
        return type == TYPE_TITLE?TYPE_TITLE:TYPE_CONTENT;
    }
}
